package com.kaibo.roomdemo.adapter

import android.databinding.ViewDataBinding
import android.view.View
import com.chad.library.adapter.base.BaseViewHolder
import com.kaibo.roomdemo.R

/**
 * @author Administrator
 * @date 2018/2/22 0022 下午 1:44
 * GitHub：
 * email：
 * description：
 */
class DataBindingViewHolder<out VDB : ViewDataBinding>(view: View) : BaseViewHolder(view) {
    fun getBinding(): VDB {
        @Suppress("UNCHECKED_CAST")
        return itemView.getTag(R.id.BaseQuickAdapter_databinding_support) as VDB
    }
}